<?php
class GeneralException extends Exception{

	private $vardump = null;
	private $userMessage = null;

	/**
	 * Generate a general code exception
	 *
	 * @param string $message
	 * @param mixed $vardump
	 * @param int $code
	 * @param string $userMessage
	 */
	public function __construct($logMessage,$vardump=null,$code=null,$userMessage=null){
		parent::__construct($logMessage,$code);
		$this->vardump = $vardump;
		$this->userMessage = $userMessage;
	}

	public function getVarDump(){
		return $this->vardump;
	}

	public function getUserMessage(){
		return $this->userMessage;
	}
}
?>